package com.bigdata.demo.service.search;

/**
 */
public class CRIndexMessage {

    public static final String INDEX = "index";
    public static final String REMOVE = "remove";

    public static final int MAX_RETRY = 3;

    private String id_key_cr;
    private String operation;
    private int retry = 0;

    /**
     * 默认构造器 防止jackson序列化失败
     */
    public CRIndexMessage() {
    }

    public CRIndexMessage(String id_key_cr, String operation, int retry) {
        this.id_key_cr = id_key_cr;
        this.operation = operation;
        this.retry = retry;
    }

    public String getId_key_cr() {
        return id_key_cr;
    }

    public void setId_key_cr(String id_key_cr) {
        this.id_key_cr = id_key_cr;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public int getRetry() {
        return retry;
    }

    public void setRetry(int retry) {
        this.retry = retry;
    }
}
